﻿<Window x:Class="NumericTextBox.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
        xmlns:AP="clr-namespace:NumericTextBox"
        xmlns:behaviors="clr-namespace:NumericTextBox"
        Title="MainWindow" Height="350" Width="525">
    <StackPanel>
        <TextBox AP:AttachedProperties.IsUsingMinMaxValue="True"
                 AP:AttachedProperties.MaximumValue="80" 
                 AP:AttachedProperties.MinimumValue="5">
            <i:Interaction.Behaviors>
                <behaviors:TextChangedBehavior/>
            </i:Interaction.Behaviors>
        </TextBox>
        <TextBox/>
    </StackPanel>
</Window>
